package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName(value = "TMS_CREW_CERT")
@ApiModel(value = "船员证书对象", description = "船员证书对象")
public class CrewCert implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "船员ID")
    @TableField("CREW_ID")
    private Long crewId;

    @ApiModelProperty(value = "船员姓名")
    @TableField("CREW_NAME")
    private String crewName;

    @ApiModelProperty(value = "证书种类ID")
    @TableField("CERT_TYPE_ID")
    private String certTypeId;

    @ApiModelProperty(value = "证书种类名称")
    @TableField("CERT_TYPE_NAME")
    private String certTypeName;

    @ApiModelProperty(value = "证书有效期起")
    @TableField("BEGIN_DATE")
    private LocalDate beginDate;

    @ApiModelProperty(value = "证书有效期止")
    @TableField("END_DATE")
    private LocalDate endDate;

    @ApiModelProperty(value = "证书编号")
    @TableField("CERT_NO")
    private String certNo;

    @ApiModelProperty(value = "创建人ID")
    @TableField("CREATE_BY")
    private Long createBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("CREATE_BY_NAME")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("UPDATE_BY")
    private Long updateBy;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("UPDATE_BY_NAME")
    private String updateByName;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "证书名称")
    @TableField("CERT_NAME")
    private String certName;

    @ApiModelProperty(value = "附件URL")
    @TableField("ATTACH_URL")
    private String attachUrl;
}
